﻿namespace Murry.DataStore
{
    /// <summary>
    /// Interface for all objects that can persist.
    /// </summary>
    public interface IPersist
    {
        /// <summary>
        /// Unique Identifier.
        /// </summary>
        string Id { get; }

        /// <summary>
        /// Add to DataStore.
        /// </summary>
        void Add();

        /// <summary>
        /// Update in DataStore.
        /// </summary>
        void Update();

        /// <summary>
        /// Delete from DataStore.
        /// </summary>
        void Delete();
    } 
}
